package construction.compositon;

abstract public class OrganizationComponent {
    private String name;
    private String des;

    public OrganizationComponent(String name, String des) {
        this.name = name;
        this.des = des;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    void add(OrganizationComponent organizationComponent){
        throw  new UnsupportedOperationException();
    }
    void remove(OrganizationComponent organizationComponent){
        throw  new UnsupportedOperationException();
    }
    void print(){
        var s =  "" +
                "name='" + name + '\'' +
                ", des='" + des + '\'' +
                '}';
        System.out.println(s);
    }

}
